import request from '@/utils/request'
import {getUrlStr} from '@/common.js'
// 上传图片
export function uploadImage(_data) {
  return request({
      url: '/common/image/upload',
      method: 'post',
      data: _data
  })
}
// 
export function commonPost(_url,_data){
  return request({
    url: _url,
    method: 'post',
    data: _data
  })
}
export function commonGet(_url,_data){
  return request({
    url: _url+(JSON.stringify(_data)=="{}"? '':getUrlStr(_data)),
    method: 'get',
  })
}
// 主体单位列表
export function deptList() {
  return request({
    url: `/dynamic/dept/list`,
    method: 'get'
  })
}